﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Public;

namespace BLL
{
    public class SoHoKhauBLL
    {
        public static List<SoHoKhauPublic> LoadSoHoKhau()
        {
            return SoHoKhauDAL.LoadSoHoKhau();
        }

        public static SoHoKhauPublic LoadSoHoKhauBySoSHK(int SoSHK)
        {
            return SoHoKhauDAL.LoadSoHoKhauBySoSHK(SoSHK);
        }
        public static List<SoHoKhauPublic> LoadListSoHoKhauBySoSHK(int SoSHK)
        {
            return SoHoKhauDAL.LoadListSoHoKhauBySoSHK(SoSHK);
        }

        public static void InsertSoHoKhau(SoHoKhauPublic shk)
        {
            SoHoKhauDAL.InsertSoHoKhau(shk);
        }
        public static int LoadMaSHK()
        {
            return SoHoKhauDAL.LoadMaSHK();
        }
        public static SoHoKhauPublic LoadSoHoKhauByMaSHK(int MaSHK)
        {
            return SoHoKhauDAL.LoadSoHoKhauByMaSHK(MaSHK);
        }
        public static int CountSoHoKhau()
        {
            return SoHoKhauDAL.CountSoHoKhau();
        }
        public static int CountSoHoKhauByYear(int firstyear, int lastyear)
        {
            return SoHoKhauDAL.CoutSoHoKhauByYear(firstyear, lastyear);
        }
        public static int CountSoHoKhauByDay(DateTime batdau, DateTime kethuc)
        {
            return SoHoKhauDAL.CountSoHoKhauByDay(batdau, kethuc);
        }
        public static string LoadDiaChiSHKByMaNK(int MaNK)
        {
            return SoHoKhauDAL.LoadDiaChiSHKByMaNK(MaNK);
        }
        public static void UpdateSHK(string SoNha, int Ap, string Duong, int NguoiCap, int SoSoHoKhau,int ChucVu)
        {
            SoHoKhauDAL.UpdateSHK(SoNha, Ap, Duong,NguoiCap, SoSoHoKhau,ChucVu);
        }
        public static void DeleteSHK(int SoSoHoKhau)
        {
            SoHoKhauDAL.DeleteSHK(SoSoHoKhau);
        }
        public static int CountSHKDeleteByDay(DateTime batdau, DateTime ketthuc)
        {
            return SoHoKhauDAL.CountSHKDeleteByDay(batdau, ketthuc);
        }
        public static List<SoHoKhauPublic> ChiTietSHKByDay(DateTime batdau, DateTime ketthuc)
        {
            return SoHoKhauDAL.ChiTietSHKByDay(batdau, ketthuc);
        }
        public static void UpdateNgayXoa(int MaSHK, DateTime NgayXoa)
        {
            SoHoKhauDAL.UpdateNgayXoa(MaSHK, NgayXoa);
        }
        public static List<SoHoKhauPublic> BaoCaoSHK(DateTime batdau, DateTime ketthuc)
        {
            return SoHoKhauDAL.BaoCaoSHK(batdau, ketthuc);
        }
        public static SoHoKhauPublic LoadSHKByChuHo(string ChuHo)
        {
            return SoHoKhauDAL.LoadSHKByChuHo(ChuHo);
        }
    }
}
